package com.encryption.entity;


import com.encryption.common.annotation.DataHandle;
import com.encryption.common.annotation.HandleType;
import com.encryption.common.annotation.MybatisDataProcess;
import com.encryption.common.handler.desensitization.Desensitization;
import com.encryption.common.handler.encrypt.AES;
import lombok.Data;
import java.io.Serializable;


@Data
@MybatisDataProcess(encryptionMode = AES.class,desensitizationMode = Desensitization.class)
public class Customer implements Serializable {

    private Integer id;

    @DataHandle(HandleType.DESENSITIZE)
    private String phone;


    @DataHandle(HandleType.ENCRYPA)
    private String address;


    private Integer age;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}

